package ceshi;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.io.Serializable;

class myObj implements Serializable{
    public String name;
    public int amount;
    
    public myObj(String n, int a){
        name = n;
        amount =a;
    }
    
    public String toString(){
        return name + ": " + amount;
    }
}
